import Vue from 'vue'
import App from './App'

// Vue.prototype.baseUrl = "http://app.sgdwd.com"
import uView from "uview-ui";
Vue.use(uView);

Vue.config.productionTip = false

// 设置全局头部
import Header from "./components/header.vue";
Vue.component('pageheader', Header)

// 设置全局底部
import tabbar from '@/components/tabbar.vue';
Vue.component('pagetabbar', tabbar)


// 设置回到头部
import goTop from "./components/gotop.vue";
Vue.component('go-top',goTop)

import uParse from '@/components/u-parse/u-parse.vue'
Vue.component('uParse',uParse)

/** 
 * 
 * 通用请求
 */
import api from '@/static/js/api.js'
/** 
 * 
 * 分页加载请求
 */
import paginator from '@/static/js/paginator.js'

/** 
 * 
 * 常用插件使用
 */
import plug from '@/static/js/plug.js'

/** 
 * 
 * 时间设置
 */
import setDate from '@/static/js/setDate.js'

Vue.prototype.$api = api
Vue.prototype.$paginator = paginator
Vue.prototype.$plug = plug
Vue.prototype.$setDate = setDate



App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
